package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.DynamicCursorName;

/**
 * @author Bright Lee
 */
public final class DynamicCloseStatement implements SqlDynamicDataStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private DynamicCursorName dynamicCursorName;

    public DynamicCloseStatement(int beginIndex, DynamicCursorName dynamicCursorName) {
        this.beginIndex = beginIndex;
        this.endIndex = dynamicCursorName.getEndIndex();
        this.dynamicCursorName = dynamicCursorName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public DynamicCursorName getDynamicCursorName() {
        return dynamicCursorName;
    }

}